package com.xuecheng.framework.domain.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 课程计划表
 * 为了保证层级关系,需要有一个增强类 com.xuecheng.framework.domain.course.ext.TeachplanNode
 * Created by admin on 2018/2/7.
 */
@Data
@ToString
@Entity
@Table(name="teachplan")
@ApiModel(value = "课程计划")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class Teachplan implements Serializable {



    @ApiModelProperty(value = "当前节点的数据库id",name = "id")
    @GeneratedValue(generator = "jpa-uuid")
    @Id
    private String id;
    @ApiModelProperty(value = "节点名字",name = "pname")
    private String pname;
    @ApiModelProperty(value = "父节点的id",name = "parentid")
    private String parentid;
    @ApiModelProperty(value = "层级,分为123级",name = "grade")
    private String grade;
    @ApiModelProperty(value = "课程类型,1视频,2文档",name = "ptype")
    private String ptype;
    @ApiModelProperty(value = "章节及课程时介绍",name = "description")
    private String description;
    @ApiModelProperty(value = "课程id",name = "courseid")
    private String courseid;
    @ApiModelProperty(value = "状态,已发布,未发布",name = "status")
    private String status;
    @ApiModelProperty(value = "排序字段",name = "orderby")
    private Integer orderby;
    @ApiModelProperty(value = "时长,单位分钟",name = "timelength")
    private Double timelength;
    @ApiModelProperty(value = "是否试学",name = "trylearn")
    private String trylearn;



}
